var _Scene = require('component/scene.js');
var _layout = require('tools/layout.js');
var _relative = _layout.relative;
var _inherit = require('core/inherit.js');
var _TargetView = require('scenes/target/target.js');

/**
 * scale wrapper
 * @type {*}
 */
var LevelTarget = _Scene.createScene(
    function (w, h) {
        this.addChild(this.mTarget = new _TargetView());
        this.mTarget.setScale(0.8);
        this.mTarget.querySelector('#close').forEach(function (button) {
            button.on('click', this.onclick, this);
        }, this);
        this.onSizeChange(w, h);
    }
);
LevelTarget.prototype.onclick = function (button) {
    console.log('LevelTarget.prototype.onclick:' + button);
};
LevelTarget.prototype.onSizeChange = function (w, h) {
    this.setSize(w, h);
};

module.exports = LevelTarget;